package com.zatech.cgnci.project.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.zatech.cgnci.project.entity.CgnciReinsuranceRiskInsuredDO;
import com.zatech.cgnci.project.entity.CgnciReinsurerDO;
import com.zatech.cgnci.project.vo.CgnciReinsurerVO;

import java.util.List;

/**
 * <p>
 * 再保人信息表 服务类
 * </p>
 *
 * @author Generator
 * @since 2024-12-17
 */
public interface CgnciReinsurerService extends IService<CgnciReinsurerDO> {

    List<CgnciReinsurerVO> listDivideInReinsurer(Long reinsuranceId);

    List<CgnciReinsurerVO> listLfDivideOutReinsurer(Long reinsuranceId);

    /**
     * 分入方案/再保人字段汇总更新
     * @param reinsurerRiskDO
     * @param reinsurer
     */
    void updateReinsurerColumn(List<CgnciReinsuranceRiskInsuredDO> divideInReinsurerRiskInsuredDOS, CgnciReinsurerDO reinsurer, Long layerId);
}
